package com.yms.fanType;

/**
 * @version : 1.0
 * @author: yangmingsong
 * @date: 2022/7/16-07-16-22:24
 * @description: spring5Test
 */
public class FanClass {
    public static void main(String[] args) {
        Integer a = 1;
        Integer b = 2;
        Integer c = 3;
        Integer d = 3;
        Integer e = 321;
        Integer f = 321;
        Integer h = 322;
        Long g = 3L;
        System.out.println(h == (f+a));//自动插箱
        System.out.println(c==d);
        System.out.println(e==f);//不会自动插箱
        System.out.println(c==(a+b));
        System.out.println(c.equals(a+b)); //自动插箱
        System.out.println(g==(a+b));
        System.out.println(g.equals(c)); //不处理数据转换

    }

}
